import ajax from './ajax';

const BASE_URL = 'http://dev-sy.rzkeji.com/api/';

//获取菜品列表
export const getAllFoodList = (params) => ajax(BASE_URL + 'getAllFoodListH5',params);
//关键词获取菜品列表
export const searchFood = (params) => ajax(BASE_URL + 'searchFoodH5',params);
//关键词菜品分类列表
export const getFoodClassify = (params) => ajax(BASE_URL + 'getFoodClassify',params);
//按分类筛选菜品列表
export const getFoodListByClassifyIdH5 = (params) => ajax(BASE_URL + 'getFoodListByClassifyIdH5',params);
//获取菜品属性
export const getAttributes = (params) => ajax(BASE_URL + 'getAttributes',params);
//添加购物车
export const saveShopCartH5 = (params) => ajax(BASE_URL + 'saveShopCartH5', params, 'POST');
//开桌
export const openTable = (params) => ajax(BASE_URL + 'openTable', params, 'POST');
//获取购物车列表
export const getShopCartList = (params) => ajax(BASE_URL + 'getShopCartList',params);
//下单
export const buildOrdersH5 = (params) => ajax(BASE_URL + 'buildOrdersH5', params, 'POST');
//获取桌号列表
export const getSellerSeatList = () => ajax(BASE_URL + 'getSellerSeatList');
//检查桌号订单状态
export const checkOrder = (params) => ajax(BASE_URL + 'checkOrder' , params, 'POST');
//获取订单详情
export const getOrderDetail = (params) => ajax(BASE_URL + 'getOrderDetail' , params);
